import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;


public class Mailbox extends UnicastRemoteObject implements MailboxSkeleton {
	private final String playerName;
	private final TicTacToeGui myGui;


	protected Mailbox(String playerName, TicTacToeGui myGui) throws RemoteException {
		super();
		this.playerName = playerName;
		this.myGui = myGui;
	}

	@Override
	public void setMark(int row, int column) throws RemoteException {
		myGui.setMark(row, column, myGui.getOtherMark());
		
	}

	@Override
	public void yieldTurn() throws RemoteException {
		myGui.setTurn();
		
	}
	


}
